// Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.

export enum CoinType {
    <% coins.forEach((coin) => { -%>
        <%-coin.id%> = <%-coin.coinId%>,
    <% }) %>
}

export namespace CoinType {
    <% methods.forEach((method) => { -%>
        export function <%-method.name%>(coin: CoinType): <%-method.returnType%> {
            switch (coin) {
                <% coins.forEach((coin) => { -%>
                    case CoinType.<%-coin.id%>: <%-method.body(coin)%>;
                <% }) %>
            }
        }
    <% }) %>
}
